package cn.czg.cms.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String username;
    private String passwordHash;
    private String nickname;
    private String avatar;
    private String phone;
    private Integer gender; // 1=男，2=女，0=未知

    private LocalDateTime createdAt;
    private LocalDateTime lastLoginAt;
}
